/**
 * 
 */
package com.study.strategy;

import lombok.Data;

/**
 * @author Administrator
 * @date 2019年5月7日
 */
@Data
public class Car implements CarFunction {

	private String color;
	private String name;
	
	public Car(String color, String name){
		this.color = color;
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Car [color=" + color + ", name=" + name + "]";
	}
	public String run(){
		return ("车子在行驶， 车的颜色：" + this.color + ", 车的牌子: " + this.name);
	}
}
